<html>
<head>
<title><?php echo $title;?></title>
<script type="text/javascript">
function press_back() {
 
	window.location = "<?php echo base_url() ?>" + "index.php/nhapxe/nhapxe";
}
</script>
</head>
<body>
	Nhap so khung - so may tung xe: <br/>
	<?php echo 'Loai xe: '.$choosenItem ?> <br/>
	
	<?php echo 'Gia nhap: '.$gia_nhap ?> <br/>
	
	<?php echo 'Tong cong: '.$tong_cong ?> <br/>
	
	<hr/>
	<?php $hidden = array (
		'choosenItem' => $choosenItem,
		'gia_nhap' => $gia_nhap,
		'tong_cong' => $tong_cong,
		'so_luong' => $so_luong
	)?>
	<?php echo form_open('nhapxe/nhapxe_preview','',$hidden)?>
	<?php 
		for($i = 0; $i < $so_luong ; $i++) {			
			$dataSK = array (
				'id' => 'SK'.$i,
				'name' => 'SK'.$i
			);
			echo 'SK:'.form_input($dataSK).'<br/>';
			$dataSM = array (
				'id' => 'SM'.$i,
				'name' => 'SM'.$i
			);
			echo 'SM:'.form_input($dataSM).'<br/>';
			echo '<br/><br/>';
		}
	?>	
	
	<?php echo form_submit('submit_SKSM','Tiep tuc...')?>
	<?php
		//TODO: +index.php/... ->how to remove it ? 
		echo form_button('button_back','Quay lai','onClick="press_back()"')
	?>
	<?php echo form_close()?>
	
	
	
</body>
</html>